home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM53.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  751b  |  22 lines

  1.   #include "window.h"
  2.   #include <string.h>
  3.   #define NORM    CREATE_VIDEO_ATTRIBUTE(black,white)
  4.   #define REVERSE CREATE_VIDEO_ATTRIBUTE(white,black)
  5.  
  6.   WPOINTER w;
  7.   char buffer[80];
  8.   main()
  9.   {
  10.     int i,row,col;
  11.     buffer[0] = 0;   /* Make sure first character is null */
  12.     WindowInitializeSystem();
  13.     WindowSaveInitial(0);
  14.     w = WindowInitialize(BORDER,1,1,40,10,NORM,NORM,SINGLEBOX);
  15.     WindowOpen(w);
  16.     WindowDisplay(w,1,NOEFFECT);
  17.     buffer[0] = 0;   /* Make sure first character is null */
  18.     WindowWriteString(w,"Enter A Password",1,1);
  19.     WindowGetPasswordAttr(w,2,1,buffer,' ','*',0,40,0,REVERSE,"40.");
  20.     WindowWriteString(w,"You entered the following:",3,1);
  21.     WindowWriteString(w,buffer,4,1);
  22.   }